package com.google.android.material.chip;

import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Outline;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.RippleDrawable;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.OvalShape;
import android.text.TextUtils;
import android.util.AttributeSet;
import androidx.core.graphics.drawable.b;
import c.b.a.b.c0.g;
import c.b.a.b.m.h;
import c.b.a.b.z.d;
import com.google.android.material.internal.f;
import java.lang.ref.WeakReference;
import java.util.Arrays;

public class a extends g implements b, Drawable.Callback, f.b {
    private static final int[] G0 = {16842910};
    private static final ShapeDrawable H0 = new ShapeDrawable(new OvalShape());
    private float A;
    private ColorStateList A0;
    private ColorStateList B;
    private WeakReference<C0097a> B0;
    private float C;
    private TextUtils.TruncateAt C0;
    private ColorStateList D;
    private boolean D0;
    private CharSequence E;
    private int E0;
    private boolean F;
    private boolean F0;
    private Drawable G;
    private ColorStateList H;
    private float I;
    private boolean J;
    private boolean K;
    private Drawable L;
    private Drawable M;
    private ColorStateList N;
    private float O;
    private CharSequence P;
    private boolean Q;
    private boolean R;
    private Drawable S;
    private h T;
    private h U;
    private float V;
    private float W;
    private float X;
    private float Y;
    private float Z;
    private float a0;
    private float b0;
    private float c0;
    private final Context d0;
    private final Paint e0 = new Paint(1);
    private final Paint f0;
    private final Paint.FontMetrics g0 = new Paint.FontMetrics();
    private final RectF h0 = new RectF();
    private final PointF i0 = new PointF();
    private final Path j0 = new Path();
    private final f k0;
    private int l0;
    private int m0;
    private int n0;
    private int o0;
    private int p0;
    private int q0;
    private boolean r0;
    private int s0;
    private int t0 = 255;
    private ColorFilter u0;
    private PorterDuffColorFilter v0;
    private ColorStateList w0;
    private ColorStateList x;
    private PorterDuff.Mode x0 = PorterDuff.Mode.SRC_IN;
    private ColorStateList y;
    private int[] y0;
    private float z;
    private boolean z0;

    /* renamed from: com.google.android.material.chip.a$a  reason: collision with other inner class name */
    public interface C0097a {
        void a();
    }

    private a(Context context, AttributeSet attributeSet, int i, int i2) {
        super(context, attributeSet, i, i2);
        Paint paint = null;
        this.B0 = new WeakReference<>(paint);
        L(context);
        this.d0 = context;
        f fVar = new f(this);
        this.k0 = fVar;
        this.E = "";
        fVar.e().density = context.getResources().getDisplayMetrics().density;
        this.f0 = paint;
        if (paint != null) {
            paint.setStyle(Paint.Style.STROKE);
        }
        setState(G0);
        c2(G0);
        this.D0 = true;
        if (c.b.a.b.a0.b.f1817a) {
            H0.setTint(-1);
        }
    }

    private void A0(Canvas canvas, Rect rect) {
        if (this.E != null) {
            Paint.Align p02 = p0(rect, this.i0);
            n0(rect, this.h0);
            if (this.k0.d() != null) {
                this.k0.e().drawableState = getState();
                this.k0.j(this.d0);
            }
            this.k0.e().setTextAlign(p02);
            int i = 0;
            boolean z2 = Math.round(this.k0.f(a1().toString())) > Math.round(this.h0.width());
            if (z2) {
                i = canvas.save();
                canvas.clipRect(this.h0);
            }
            CharSequence charSequence = this.E;
            if (z2 && this.C0 != null) {
                charSequence = TextUtils.ellipsize(charSequence, this.k0.e(), this.h0.width(), this.C0);
            }
            CharSequence charSequence2 = charSequence;
            int length = charSequence2.length();
            PointF pointF = this.i0;
            canvas.drawText(charSequence2, 0, length, pointF.x, pointF.y, this.k0.e());
            if (z2) {
                canvas.restoreToCount(i);
            }
        }
    }

    private boolean D2() {
        return this.R && this.S != null && this.r0;
    }

    private boolean E2() {
        return this.F && this.G != null;
    }

    private boolean F2() {
        return this.K && this.L != null;
    }

    private void G2(Drawable drawable) {
        if (drawable != null) {
            drawable.setCallback((Drawable.Callback) null);
        }
    }

    private void H2() {
        this.A0 = this.z0 ? c.b.a.b.a0.b.d(this.D) : null;
    }

    @TargetApi(21)
    private void I2() {
        this.M = new RippleDrawable(c.b.a.b.a0.b.d(Y0()), this.L, H0);
    }

    private void S1(ColorStateList colorStateList) {
        if (this.x != colorStateList) {
            this.x = colorStateList;
            onStateChange(getState());
        }
    }

    private ColorFilter e1() {
        ColorFilter colorFilter = this.u0;
        return colorFilter != null ? colorFilter : this.v0;
    }

    private void g0(Drawable drawable) {
        if (drawable != null) {
            drawable.setCallback(this);
            androidx.core.graphics.drawable.a.m(drawable, androidx.core.graphics.drawable.a.f(this));
            drawable.setLevel(getLevel());
            drawable.setVisible(isVisible(), false);
            if (drawable == this.L) {
                if (drawable.isStateful()) {
                    drawable.setState(R0());
                }
                androidx.core.graphics.drawable.a.o(drawable, this.N);
                return;
            }
            if (drawable.isStateful()) {
                drawable.setState(getState());
            }
            Drawable drawable2 = this.G;
            if (drawable == drawable2 && this.J) {
                androidx.core.graphics.drawable.a.o(drawable2, this.H);
            }
        }
    }

    private static boolean g1(int[] iArr, int i) {
        if (iArr == null) {
            return false;
        }
        for (int i2 : iArr) {
            if (i2 == i) {
                return true;
            }
        }
        return false;
    }

    private void h0(Rect rect, RectF rectF) {
        rectF.setEmpty();
        if (E2() || D2()) {
            float f = this.V + this.W;
            if (androidx.core.graphics.drawable.a.f(this) == 0) {
                float f2 = ((float) rect.left) + f;
                rectF.left = f2;
                rectF.right = f2 + this.I;
            } else {
                float f3 = ((float) rect.right) - f;
                rectF.right = f3;
                rectF.left = f3 - this.I;
            }
            float exactCenterY = rect.exactCenterY();
            float f4 = this.I;
            float f5 = exactCenterY - (f4 / 2.0f);
            rectF.top = f5;
            rectF.bottom = f5 + f4;
        }
    }

    private void j0(Rect rect, RectF rectF) {
        rectF.set(rect);
        if (F2()) {
            float f = this.c0 + this.b0 + this.O + this.a0 + this.Z;
            if (androidx.core.graphics.drawable.a.f(this) == 0) {
                rectF.right = ((float) rect.right) - f;
            } else {
                rectF.left = ((float) rect.left) + f;
            }
        }
    }

    private void k0(Rect rect, RectF rectF) {
        rectF.setEmpty();
        if (F2()) {
            float f = this.c0 + this.b0;
            if (androidx.core.graphics.drawable.a.f(this) == 0) {
                float f2 = ((float) rect.right) - f;
                rectF.right = f2;
                rectF.left = f2 - this.O;
            } else {
                float f3 = ((float) rect.left) + f;
                rectF.left = f3;
                rectF.right = f3 + this.O;
            }
            float exactCenterY = rect.exactCenterY();
            float f4 = this.O;
            float f5 = exactCenterY - (f4 / 2.0f);
            rectF.top = f5;
            rectF.bottom = f5 + f4;
        }
    }

    private static boolean k1(ColorStateList colorStateList) {
        return colorStateList != null && colorStateList.isStateful();
    }

    private void l0(Rect rect, RectF rectF) {
        rectF.setEmpty();
        if (F2()) {
            float f = this.c0 + this.b0 + this.O + this.a0 + this.Z;
            if (androidx.core.graphics.drawable.a.f(this) == 0) {
                float f2 = (float) rect.right;
                rectF.right = f2;
                rectF.left = f2 - f;
            } else {
                int i = rect.left;
                rectF.left = (float) i;
                rectF.right = ((float) i) + f;
            }
            rectF.top = (float) rect.top;
            rectF.bottom = (float) rect.bottom;
        }
    }

    private static boolean l1(Drawable drawable) {
        return drawable != null && drawable.isStateful();
    }

    /* JADX WARNING: Code restructure failed: missing block: B:1:0x0002, code lost:
        r0 = r0.f1923b;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    private static boolean m1(c.b.a.b.z.d r0) {
        /*
            if (r0 == 0) goto L_0x000e
            android.content.res.ColorStateList r0 = r0.f1923b
            if (r0 == 0) goto L_0x000e
            boolean r0 = r0.isStateful()
            if (r0 == 0) goto L_0x000e
            r0 = 1
            goto L_0x000f
        L_0x000e:
            r0 = 0
        L_0x000f:
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.chip.a.m1(c.b.a.b.z.d):boolean");
    }

    private void n0(Rect rect, RectF rectF) {
        rectF.setEmpty();
        if (this.E != null) {
            float i02 = this.V + i0() + this.Y;
            float m02 = this.c0 + m0() + this.Z;
            if (androidx.core.graphics.drawable.a.f(this) == 0) {
                rectF.left = ((float) rect.left) + i02;
                rectF.right = ((float) rect.right) - m02;
            } else {
                rectF.left = ((float) rect.left) + m02;
                rectF.right = ((float) rect.right) - i02;
            }
            rectF.top = (float) rect.top;
            rectF.bottom = (float) rect.bottom;
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:22:0x00ce  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    private void n1(android.util.AttributeSet r8, int r9, int r10) {
        /*
            r7 = this;
            android.content.Context r0 = r7.d0
            int[] r2 = c.b.a.b.l.Chip
            r6 = 0
            int[] r5 = new int[r6]
            r1 = r8
            r3 = r9
            r4 = r10
            android.content.res.TypedArray r9 = com.google.android.material.internal.g.k(r0, r1, r2, r3, r4, r5)
            int r10 = c.b.a.b.l.Chip_shapeAppearance
            boolean r10 = r9.hasValue(r10)
            r7.F0 = r10
            android.content.Context r10 = r7.d0
            int r0 = c.b.a.b.l.Chip_chipSurfaceColor
            android.content.res.ColorStateList r10 = c.b.a.b.z.c.a(r10, r9, r0)
            r7.S1(r10)
            android.content.Context r10 = r7.d0
            int r0 = c.b.a.b.l.Chip_chipBackgroundColor
            android.content.res.ColorStateList r10 = c.b.a.b.z.c.a(r10, r9, r0)
            r7.w1(r10)
            int r10 = c.b.a.b.l.Chip_chipMinHeight
            r0 = 0
            float r10 = r9.getDimension(r10, r0)
            r7.K1(r10)
            int r10 = c.b.a.b.l.Chip_chipCornerRadius
            boolean r10 = r9.hasValue(r10)
            if (r10 == 0) goto L_0x0047
            int r10 = c.b.a.b.l.Chip_chipCornerRadius
            float r10 = r9.getDimension(r10, r0)
            r7.y1(r10)
        L_0x0047:
            android.content.Context r10 = r7.d0
            int r1 = c.b.a.b.l.Chip_chipStrokeColor
            android.content.res.ColorStateList r10 = c.b.a.b.z.c.a(r10, r9, r1)
            r7.O1(r10)
            int r10 = c.b.a.b.l.Chip_chipStrokeWidth
            float r10 = r9.getDimension(r10, r0)
            r7.Q1(r10)
            android.content.Context r10 = r7.d0
            int r1 = c.b.a.b.l.Chip_rippleColor
            android.content.res.ColorStateList r10 = c.b.a.b.z.c.a(r10, r9, r1)
            r7.p2(r10)
            int r10 = c.b.a.b.l.Chip_android_text
            java.lang.CharSequence r10 = r9.getText(r10)
            r7.u2(r10)
            android.content.Context r10 = r7.d0
            int r1 = c.b.a.b.l.Chip_android_textAppearance
            c.b.a.b.z.d r10 = c.b.a.b.z.c.f(r10, r9, r1)
            r7.v2(r10)
            int r10 = c.b.a.b.l.Chip_android_ellipsize
            int r10 = r9.getInt(r10, r6)
            r1 = 1
            if (r10 == r1) goto L_0x0090
            r1 = 2
            if (r10 == r1) goto L_0x008d
            r1 = 3
            if (r10 == r1) goto L_0x008a
            goto L_0x0095
        L_0x008a:
            android.text.TextUtils$TruncateAt r10 = android.text.TextUtils.TruncateAt.END
            goto L_0x0092
        L_0x008d:
            android.text.TextUtils$TruncateAt r10 = android.text.TextUtils.TruncateAt.MIDDLE
            goto L_0x0092
        L_0x0090:
            android.text.TextUtils$TruncateAt r10 = android.text.TextUtils.TruncateAt.START
        L_0x0092:
            r7.h2(r10)
        L_0x0095:
            int r10 = c.b.a.b.l.Chip_chipIconVisible
            boolean r10 = r9.getBoolean(r10, r6)
            r7.J1(r10)
            java.lang.String r10 = "http://schemas.android.com/apk/res-auto"
            if (r8 == 0) goto L_0x00bb
            java.lang.String r1 = "chipIconEnabled"
            java.lang.String r1 = r8.getAttributeValue(r10, r1)
            if (r1 == 0) goto L_0x00bb
            java.lang.String r1 = "chipIconVisible"
            java.lang.String r1 = r8.getAttributeValue(r10, r1)
            if (r1 != 0) goto L_0x00bb
            int r1 = c.b.a.b.l.Chip_chipIconEnabled
            boolean r1 = r9.getBoolean(r1, r6)
            r7.J1(r1)
        L_0x00bb:
            android.content.Context r1 = r7.d0
            int r2 = c.b.a.b.l.Chip_chipIcon
            android.graphics.drawable.Drawable r1 = c.b.a.b.z.c.d(r1, r9, r2)
            r7.C1(r1)
            int r1 = c.b.a.b.l.Chip_chipIconTint
            boolean r1 = r9.hasValue(r1)
            if (r1 == 0) goto L_0x00d9
            android.content.Context r1 = r7.d0
            int r2 = c.b.a.b.l.Chip_chipIconTint
            android.content.res.ColorStateList r1 = c.b.a.b.z.c.a(r1, r9, r2)
            r7.G1(r1)
        L_0x00d9:
            int r1 = c.b.a.b.l.Chip_chipIconSize
            float r1 = r9.getDimension(r1, r0)
            r7.E1(r1)
            int r1 = c.b.a.b.l.Chip_closeIconVisible
            boolean r1 = r9.getBoolean(r1, r6)
            r7.f2(r1)
            if (r8 == 0) goto L_0x0106
            java.lang.String r1 = "closeIconEnabled"
            java.lang.String r1 = r8.getAttributeValue(r10, r1)
            if (r1 == 0) goto L_0x0106
            java.lang.String r1 = "closeIconVisible"
            java.lang.String r1 = r8.getAttributeValue(r10, r1)
            if (r1 != 0) goto L_0x0106
            int r1 = c.b.a.b.l.Chip_closeIconEnabled
            boolean r1 = r9.getBoolean(r1, r6)
            r7.f2(r1)
        L_0x0106:
            android.content.Context r1 = r7.d0
            int r2 = c.b.a.b.l.Chip_closeIcon
            android.graphics.drawable.Drawable r1 = c.b.a.b.z.c.d(r1, r9, r2)
            r7.T1(r1)
            android.content.Context r1 = r7.d0
            int r2 = c.b.a.b.l.Chip_closeIconTint
            android.content.res.ColorStateList r1 = c.b.a.b.z.c.a(r1, r9, r2)
            r7.d2(r1)
            int r1 = c.b.a.b.l.Chip_closeIconSize
            float r1 = r9.getDimension(r1, r0)
            r7.Y1(r1)
            int r1 = c.b.a.b.l.Chip_android_checkable
            boolean r1 = r9.getBoolean(r1, r6)
            r7.q1(r1)
            int r1 = c.b.a.b.l.Chip_checkedIconVisible
            boolean r1 = r9.getBoolean(r1, r6)
            r7.v1(r1)
            if (r8 == 0) goto L_0x0152
            java.lang.String r1 = "checkedIconEnabled"
            java.lang.String r1 = r8.getAttributeValue(r10, r1)
            if (r1 == 0) goto L_0x0152
            java.lang.String r1 = "checkedIconVisible"
            java.lang.String r8 = r8.getAttributeValue(r10, r1)
            if (r8 != 0) goto L_0x0152
            int r8 = c.b.a.b.l.Chip_checkedIconEnabled
            boolean r8 = r9.getBoolean(r8, r6)
            r7.v1(r8)
        L_0x0152:
            android.content.Context r8 = r7.d0
            int r10 = c.b.a.b.l.Chip_checkedIcon
            android.graphics.drawable.Drawable r8 = c.b.a.b.z.c.d(r8, r9, r10)
            r7.s1(r8)
            android.content.Context r8 = r7.d0
            int r10 = c.b.a.b.l.Chip_showMotionSpec
            c.b.a.b.m.h r8 = c.b.a.b.m.h.b(r8, r9, r10)
            r7.s2(r8)
            android.content.Context r8 = r7.d0
            int r10 = c.b.a.b.l.Chip_hideMotionSpec
            c.b.a.b.m.h r8 = c.b.a.b.m.h.b(r8, r9, r10)
            r7.i2(r8)
            int r8 = c.b.a.b.l.Chip_chipStartPadding
            float r8 = r9.getDimension(r8, r0)
            r7.M1(r8)
            int r8 = c.b.a.b.l.Chip_iconStartPadding
            float r8 = r9.getDimension(r8, r0)
            r7.m2(r8)
            int r8 = c.b.a.b.l.Chip_iconEndPadding
            float r8 = r9.getDimension(r8, r0)
            r7.k2(r8)
            int r8 = c.b.a.b.l.Chip_textStartPadding
            float r8 = r9.getDimension(r8, r0)
            r7.z2(r8)
            int r8 = c.b.a.b.l.Chip_textEndPadding
            float r8 = r9.getDimension(r8, r0)
            r7.x2(r8)
            int r8 = c.b.a.b.l.Chip_closeIconStartPadding
            float r8 = r9.getDimension(r8, r0)
            r7.a2(r8)
            int r8 = c.b.a.b.l.Chip_closeIconEndPadding
            float r8 = r9.getDimension(r8, r0)
            r7.V1(r8)
            int r8 = c.b.a.b.l.Chip_chipEndPadding
            float r8 = r9.getDimension(r8, r0)
            r7.A1(r8)
            int r8 = c.b.a.b.l.Chip_android_maxWidth
            r10 = 2147483647(0x7fffffff, float:NaN)
            int r8 = r9.getDimensionPixelSize(r8, r10)
            r7.o2(r8)
            r9.recycle()
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.chip.a.n1(android.util.AttributeSet, int, int):void");
    }

    private float o0() {
        this.k0.e().getFontMetrics(this.g0);
        Paint.FontMetrics fontMetrics = this.g0;
        return (fontMetrics.descent + fontMetrics.ascent) / 2.0f;
    }

    /* JADX WARNING: Removed duplicated region for block: B:69:0x00db  */
    /* JADX WARNING: Removed duplicated region for block: B:70:0x00e2  */
    /* JADX WARNING: Removed duplicated region for block: B:73:0x00e7  */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x00f4  */
    /* JADX WARNING: Removed duplicated region for block: B:77:0x00fd  */
    /* JADX WARNING: Removed duplicated region for block: B:80:0x010c  */
    /* JADX WARNING: Removed duplicated region for block: B:83:0x011b  */
    /* JADX WARNING: Removed duplicated region for block: B:90:0x0145  */
    /* JADX WARNING: Removed duplicated region for block: B:92:0x014a  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    private boolean p1(int[] r7, int[] r8) {
        /*
            r6 = this;
            boolean r0 = super.onStateChange(r7)
            android.content.res.ColorStateList r1 = r6.x
            r2 = 0
            if (r1 == 0) goto L_0x0010
            int r3 = r6.l0
            int r1 = r1.getColorForState(r7, r3)
            goto L_0x0011
        L_0x0010:
            r1 = 0
        L_0x0011:
            int r3 = r6.l0
            r4 = 1
            if (r3 == r1) goto L_0x0019
            r6.l0 = r1
            r0 = 1
        L_0x0019:
            android.content.res.ColorStateList r3 = r6.y
            if (r3 == 0) goto L_0x0024
            int r5 = r6.m0
            int r3 = r3.getColorForState(r7, r5)
            goto L_0x0025
        L_0x0024:
            r3 = 0
        L_0x0025:
            int r5 = r6.m0
            if (r5 == r3) goto L_0x002c
            r6.m0 = r3
            r0 = 1
        L_0x002c:
            int r1 = c.b.a.b.s.a.e(r1, r3)
            int r3 = r6.n0
            if (r3 == r1) goto L_0x0036
            r3 = 1
            goto L_0x0037
        L_0x0036:
            r3 = 0
        L_0x0037:
            android.content.res.ColorStateList r5 = r6.w()
            if (r5 != 0) goto L_0x003f
            r5 = 1
            goto L_0x0040
        L_0x003f:
            r5 = 0
        L_0x0040:
            r3 = r3 | r5
            if (r3 == 0) goto L_0x004d
            r6.n0 = r1
            android.content.res.ColorStateList r0 = android.content.res.ColorStateList.valueOf(r1)
            r6.U(r0)
            r0 = 1
        L_0x004d:
            android.content.res.ColorStateList r1 = r6.B
            if (r1 == 0) goto L_0x0058
            int r3 = r6.o0
            int r1 = r1.getColorForState(r7, r3)
            goto L_0x0059
        L_0x0058:
            r1 = 0
        L_0x0059:
            int r3 = r6.o0
            if (r3 == r1) goto L_0x0060
            r6.o0 = r1
            r0 = 1
        L_0x0060:
            android.content.res.ColorStateList r1 = r6.A0
            if (r1 == 0) goto L_0x0073
            boolean r1 = c.b.a.b.a0.b.e(r7)
            if (r1 == 0) goto L_0x0073
            android.content.res.ColorStateList r1 = r6.A0
            int r3 = r6.p0
            int r1 = r1.getColorForState(r7, r3)
            goto L_0x0074
        L_0x0073:
            r1 = 0
        L_0x0074:
            int r3 = r6.p0
            if (r3 == r1) goto L_0x007f
            r6.p0 = r1
            boolean r1 = r6.z0
            if (r1 == 0) goto L_0x007f
            r0 = 1
        L_0x007f:
            com.google.android.material.internal.f r1 = r6.k0
            c.b.a.b.z.d r1 = r1.d()
            if (r1 == 0) goto L_0x00a0
            com.google.android.material.internal.f r1 = r6.k0
            c.b.a.b.z.d r1 = r1.d()
            android.content.res.ColorStateList r1 = r1.f1923b
            if (r1 == 0) goto L_0x00a0
            com.google.android.material.internal.f r1 = r6.k0
            c.b.a.b.z.d r1 = r1.d()
            android.content.res.ColorStateList r1 = r1.f1923b
            int r3 = r6.q0
            int r1 = r1.getColorForState(r7, r3)
            goto L_0x00a1
        L_0x00a0:
            r1 = 0
        L_0x00a1:
            int r3 = r6.q0
            if (r3 == r1) goto L_0x00a8
            r6.q0 = r1
            r0 = 1
        L_0x00a8:
            int[] r1 = r6.getState()
            r3 = 16842912(0x10100a0, float:2.3694006E-38)
            boolean r1 = g1(r1, r3)
            if (r1 == 0) goto L_0x00bb
            boolean r1 = r6.Q
            if (r1 == 0) goto L_0x00bb
            r1 = 1
            goto L_0x00bc
        L_0x00bb:
            r1 = 0
        L_0x00bc:
            boolean r3 = r6.r0
            if (r3 == r1) goto L_0x00d6
            android.graphics.drawable.Drawable r3 = r6.S
            if (r3 == 0) goto L_0x00d6
            float r0 = r6.i0()
            r6.r0 = r1
            float r1 = r6.i0()
            int r0 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))
            if (r0 == 0) goto L_0x00d5
            r0 = 1
            r1 = 1
            goto L_0x00d7
        L_0x00d5:
            r0 = 1
        L_0x00d6:
            r1 = 0
        L_0x00d7:
            android.content.res.ColorStateList r3 = r6.w0
            if (r3 == 0) goto L_0x00e2
            int r5 = r6.s0
            int r3 = r3.getColorForState(r7, r5)
            goto L_0x00e3
        L_0x00e2:
            r3 = 0
        L_0x00e3:
            int r5 = r6.s0
            if (r5 == r3) goto L_0x00f4
            r6.s0 = r3
            android.content.res.ColorStateList r0 = r6.w0
            android.graphics.PorterDuff$Mode r3 = r6.x0
            android.graphics.PorterDuffColorFilter r0 = c.b.a.b.u.a.a(r6, r0, r3)
            r6.v0 = r0
            goto L_0x00f5
        L_0x00f4:
            r4 = r0
        L_0x00f5:
            android.graphics.drawable.Drawable r0 = r6.G
            boolean r0 = l1(r0)
            if (r0 == 0) goto L_0x0104
            android.graphics.drawable.Drawable r0 = r6.G
            boolean r0 = r0.setState(r7)
            r4 = r4 | r0
        L_0x0104:
            android.graphics.drawable.Drawable r0 = r6.S
            boolean r0 = l1(r0)
            if (r0 == 0) goto L_0x0113
            android.graphics.drawable.Drawable r0 = r6.S
            boolean r0 = r0.setState(r7)
            r4 = r4 | r0
        L_0x0113:
            android.graphics.drawable.Drawable r0 = r6.L
            boolean r0 = l1(r0)
            if (r0 == 0) goto L_0x0130
            int r0 = r7.length
            int r3 = r8.length
            int r0 = r0 + r3
            int[] r0 = new int[r0]
            int r3 = r7.length
            java.lang.System.arraycopy(r7, r2, r0, r2, r3)
            int r7 = r7.length
            int r3 = r8.length
            java.lang.System.arraycopy(r8, r2, r0, r7, r3)
            android.graphics.drawable.Drawable r7 = r6.L
            boolean r7 = r7.setState(r0)
            r4 = r4 | r7
        L_0x0130:
            boolean r7 = c.b.a.b.a0.b.f1817a
            if (r7 == 0) goto L_0x0143
            android.graphics.drawable.Drawable r7 = r6.M
            boolean r7 = l1(r7)
            if (r7 == 0) goto L_0x0143
            android.graphics.drawable.Drawable r7 = r6.M
            boolean r7 = r7.setState(r8)
            r4 = r4 | r7
        L_0x0143:
            if (r4 == 0) goto L_0x0148
            r6.invalidateSelf()
        L_0x0148:
            if (r1 == 0) goto L_0x014d
            r6.o1()
        L_0x014d:
            return r4
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.chip.a.p1(int[], int[]):boolean");
    }

    private boolean q0() {
        return this.R && this.S != null && this.Q;
    }

    public static a r0(Context context, AttributeSet attributeSet, int i, int i2) {
        a aVar = new a(context, attributeSet, i, i2);
        aVar.n1(attributeSet, i, i2);
        return aVar;
    }

    private void s0(Canvas canvas, Rect rect) {
        if (D2()) {
            h0(rect, this.h0);
            RectF rectF = this.h0;
            float f = rectF.left;
            float f2 = rectF.top;
            canvas.translate(f, f2);
            this.S.setBounds(0, 0, (int) this.h0.width(), (int) this.h0.height());
            this.S.draw(canvas);
            canvas.translate(-f, -f2);
        }
    }

    private void t0(Canvas canvas, Rect rect) {
        if (!this.F0) {
            this.e0.setColor(this.m0);
            this.e0.setStyle(Paint.Style.FILL);
            this.e0.setColorFilter(e1());
            this.h0.set(rect);
            canvas.drawRoundRect(this.h0, D0(), D0(), this.e0);
        }
    }

    private void u0(Canvas canvas, Rect rect) {
        if (E2()) {
            h0(rect, this.h0);
            RectF rectF = this.h0;
            float f = rectF.left;
            float f2 = rectF.top;
            canvas.translate(f, f2);
            this.G.setBounds(0, 0, (int) this.h0.width(), (int) this.h0.height());
            this.G.draw(canvas);
            canvas.translate(-f, -f2);
        }
    }

    private void v0(Canvas canvas, Rect rect) {
        if (this.C > 0.0f && !this.F0) {
            this.e0.setColor(this.o0);
            this.e0.setStyle(Paint.Style.STROKE);
            if (!this.F0) {
                this.e0.setColorFilter(e1());
            }
            RectF rectF = this.h0;
            float f = this.C;
            rectF.set(((float) rect.left) + (f / 2.0f), ((float) rect.top) + (f / 2.0f), ((float) rect.right) - (f / 2.0f), ((float) rect.bottom) - (f / 2.0f));
            float f2 = this.A - (this.C / 2.0f);
            canvas.drawRoundRect(this.h0, f2, f2, this.e0);
        }
    }

    private void w0(Canvas canvas, Rect rect) {
        if (!this.F0) {
            this.e0.setColor(this.l0);
            this.e0.setStyle(Paint.Style.FILL);
            this.h0.set(rect);
            canvas.drawRoundRect(this.h0, D0(), D0(), this.e0);
        }
    }

    private void x0(Canvas canvas, Rect rect) {
        Drawable drawable;
        if (F2()) {
            k0(rect, this.h0);
            RectF rectF = this.h0;
            float f = rectF.left;
            float f2 = rectF.top;
            canvas.translate(f, f2);
            this.L.setBounds(0, 0, (int) this.h0.width(), (int) this.h0.height());
            if (c.b.a.b.a0.b.f1817a) {
                this.M.setBounds(this.L.getBounds());
                this.M.jumpToCurrentState();
                drawable = this.M;
            } else {
                drawable = this.L;
            }
            drawable.draw(canvas);
            canvas.translate(-f, -f2);
        }
    }

    private void y0(Canvas canvas, Rect rect) {
        this.e0.setColor(this.p0);
        this.e0.setStyle(Paint.Style.FILL);
        this.h0.set(rect);
        if (!this.F0) {
            canvas.drawRoundRect(this.h0, D0(), D0(), this.e0);
            return;
        }
        g(new RectF(rect), this.j0);
        super.o(canvas, this.e0, this.j0, t());
    }

    private void z0(Canvas canvas, Rect rect) {
        Paint paint = this.f0;
        if (paint != null) {
            paint.setColor(b.f.e.a.d(-16777216, 127));
            canvas.drawRect(rect, this.f0);
            if (E2() || D2()) {
                h0(rect, this.h0);
                canvas.drawRect(this.h0, this.f0);
            }
            if (this.E != null) {
                canvas.drawLine((float) rect.left, rect.exactCenterY(), (float) rect.right, rect.exactCenterY(), this.f0);
            }
            if (F2()) {
                k0(rect, this.h0);
                canvas.drawRect(this.h0, this.f0);
            }
            this.f0.setColor(b.f.e.a.d(-65536, 127));
            j0(rect, this.h0);
            canvas.drawRect(this.h0, this.f0);
            this.f0.setColor(b.f.e.a.d(-16711936, 127));
            l0(rect, this.h0);
            canvas.drawRect(this.h0, this.f0);
        }
    }

    public void A1(float f) {
        if (this.c0 != f) {
            this.c0 = f;
            invalidateSelf();
            o1();
        }
    }

    public void A2(int i) {
        z2(this.d0.getResources().getDimension(i));
    }

    public Drawable B0() {
        return this.S;
    }

    public void B1(int i) {
        A1(this.d0.getResources().getDimension(i));
    }

    public void B2(boolean z2) {
        if (this.z0 != z2) {
            this.z0 = z2;
            H2();
            onStateChange(getState());
        }
    }

    public ColorStateList C0() {
        return this.y;
    }

    public void C1(Drawable drawable) {
        Drawable F02 = F0();
        if (F02 != drawable) {
            float i02 = i0();
            this.G = drawable != null ? androidx.core.graphics.drawable.a.r(drawable).mutate() : null;
            float i03 = i0();
            G2(F02);
            if (E2()) {
                g0(this.G);
            }
            invalidateSelf();
            if (i02 != i03) {
                o1();
            }
        }
    }

    /* access modifiers changed from: package-private */
    public boolean C2() {
        return this.D0;
    }

    public float D0() {
        return this.F0 ? E() : this.A;
    }

    public void D1(int i) {
        C1(b.a.k.a.a.d(this.d0, i));
    }

    public float E0() {
        return this.c0;
    }

    public void E1(float f) {
        if (this.I != f) {
            float i02 = i0();
            this.I = f;
            float i03 = i0();
            invalidateSelf();
            if (i02 != i03) {
                o1();
            }
        }
    }

    public Drawable F0() {
        Drawable drawable = this.G;
        if (drawable != null) {
            return androidx.core.graphics.drawable.a.q(drawable);
        }
        return null;
    }

    public void F1(int i) {
        E1(this.d0.getResources().getDimension(i));
    }

    public float G0() {
        return this.I;
    }

    public void G1(ColorStateList colorStateList) {
        this.J = true;
        if (this.H != colorStateList) {
            this.H = colorStateList;
            if (E2()) {
                androidx.core.graphics.drawable.a.o(this.G, colorStateList);
            }
            onStateChange(getState());
        }
    }

    public ColorStateList H0() {
        return this.H;
    }

    public void H1(int i) {
        G1(b.a.k.a.a.c(this.d0, i));
    }

    public float I0() {
        return this.z;
    }

    public void I1(int i) {
        J1(this.d0.getResources().getBoolean(i));
    }

    public float J0() {
        return this.V;
    }

    public void J1(boolean z2) {
        if (this.F != z2) {
            boolean E2 = E2();
            this.F = z2;
            boolean E22 = E2();
            if (E2 != E22) {
                if (E22) {
                    g0(this.G);
                } else {
                    G2(this.G);
                }
                invalidateSelf();
                o1();
            }
        }
    }

    public ColorStateList K0() {
        return this.B;
    }

    public void K1(float f) {
        if (this.z != f) {
            this.z = f;
            invalidateSelf();
            o1();
        }
    }

    public float L0() {
        return this.C;
    }

    public void L1(int i) {
        K1(this.d0.getResources().getDimension(i));
    }

    public Drawable M0() {
        Drawable drawable = this.L;
        if (drawable != null) {
            return androidx.core.graphics.drawable.a.q(drawable);
        }
        return null;
    }

    public void M1(float f) {
        if (this.V != f) {
            this.V = f;
            invalidateSelf();
            o1();
        }
    }

    public CharSequence N0() {
        return this.P;
    }

    public void N1(int i) {
        M1(this.d0.getResources().getDimension(i));
    }

    public float O0() {
        return this.b0;
    }

    public void O1(ColorStateList colorStateList) {
        if (this.B != colorStateList) {
            this.B = colorStateList;
            if (this.F0) {
                b0(colorStateList);
            }
            onStateChange(getState());
        }
    }

    public float P0() {
        return this.O;
    }

    public void P1(int i) {
        O1(b.a.k.a.a.c(this.d0, i));
    }

    public float Q0() {
        return this.a0;
    }

    public void Q1(float f) {
        if (this.C != f) {
            this.C = f;
            this.e0.setStrokeWidth(f);
            if (this.F0) {
                super.c0(f);
            }
            invalidateSelf();
        }
    }

    public int[] R0() {
        return this.y0;
    }

    public void R1(int i) {
        Q1(this.d0.getResources().getDimension(i));
    }

    public ColorStateList S0() {
        return this.N;
    }

    public void T0(RectF rectF) {
        l0(getBounds(), rectF);
    }

    public void T1(Drawable drawable) {
        Drawable M0 = M0();
        if (M0 != drawable) {
            float m02 = m0();
            this.L = drawable != null ? androidx.core.graphics.drawable.a.r(drawable).mutate() : null;
            if (c.b.a.b.a0.b.f1817a) {
                I2();
            }
            float m03 = m0();
            G2(M0);
            if (F2()) {
                g0(this.L);
            }
            invalidateSelf();
            if (m02 != m03) {
                o1();
            }
        }
    }

    public TextUtils.TruncateAt U0() {
        return this.C0;
    }

    public void U1(CharSequence charSequence) {
        if (this.P != charSequence) {
            this.P = b.f.j.a.c().h(charSequence);
            invalidateSelf();
        }
    }

    public h V0() {
        return this.U;
    }

    public void V1(float f) {
        if (this.b0 != f) {
            this.b0 = f;
            invalidateSelf();
            if (F2()) {
                o1();
            }
        }
    }

    public float W0() {
        return this.X;
    }

    public void W1(int i) {
        V1(this.d0.getResources().getDimension(i));
    }

    public float X0() {
        return this.W;
    }

    public void X1(int i) {
        T1(b.a.k.a.a.d(this.d0, i));
    }

    public ColorStateList Y0() {
        return this.D;
    }

    public void Y1(float f) {
        if (this.O != f) {
            this.O = f;
            invalidateSelf();
            if (F2()) {
                o1();
            }
        }
    }

    public h Z0() {
        return this.T;
    }

    public void Z1(int i) {
        Y1(this.d0.getResources().getDimension(i));
    }

    public void a() {
        o1();
        invalidateSelf();
    }

    public CharSequence a1() {
        return this.E;
    }

    public void a2(float f) {
        if (this.a0 != f) {
            this.a0 = f;
            invalidateSelf();
            if (F2()) {
                o1();
            }
        }
    }

    public d b1() {
        return this.k0.d();
    }

    public void b2(int i) {
        a2(this.d0.getResources().getDimension(i));
    }

    public float c1() {
        return this.Z;
    }

    public boolean c2(int[] iArr) {
        if (Arrays.equals(this.y0, iArr)) {
            return false;
        }
        this.y0 = iArr;
        if (F2()) {
            return p1(getState(), iArr);
        }
        return false;
    }

    public float d1() {
        return this.Y;
    }

    public void d2(ColorStateList colorStateList) {
        if (this.N != colorStateList) {
            this.N = colorStateList;
            if (F2()) {
                androidx.core.graphics.drawable.a.o(this.L, colorStateList);
            }
            onStateChange(getState());
        }
    }

    public void draw(Canvas canvas) {
        Rect bounds = getBounds();
        if (!bounds.isEmpty() && getAlpha() != 0) {
            int i = 0;
            int i2 = this.t0;
            if (i2 < 255) {
                i = c.b.a.b.o.a.a(canvas, (float) bounds.left, (float) bounds.top, (float) bounds.right, (float) bounds.bottom, i2);
            }
            w0(canvas, bounds);
            t0(canvas, bounds);
            if (this.F0) {
                super.draw(canvas);
            }
            v0(canvas, bounds);
            y0(canvas, bounds);
            u0(canvas, bounds);
            s0(canvas, bounds);
            if (this.D0) {
                A0(canvas, bounds);
            }
            x0(canvas, bounds);
            z0(canvas, bounds);
            if (this.t0 < 255) {
                canvas.restoreToCount(i);
            }
        }
    }

    public void e2(int i) {
        d2(b.a.k.a.a.c(this.d0, i));
    }

    public boolean f1() {
        return this.z0;
    }

    public void f2(boolean z2) {
        if (this.K != z2) {
            boolean F2 = F2();
            this.K = z2;
            boolean F22 = F2();
            if (F2 != F22) {
                if (F22) {
                    g0(this.L);
                } else {
                    G2(this.L);
                }
                invalidateSelf();
                o1();
            }
        }
    }

    public void g2(C0097a aVar) {
        this.B0 = new WeakReference<>(aVar);
    }

    public int getAlpha() {
        return this.t0;
    }

    public ColorFilter getColorFilter() {
        return this.u0;
    }

    public int getIntrinsicHeight() {
        return (int) this.z;
    }

    public int getIntrinsicWidth() {
        return Math.min(Math.round(this.V + i0() + this.Y + this.k0.f(a1().toString()) + this.Z + m0() + this.c0), this.E0);
    }

    public int getOpacity() {
        return -3;
    }

    @TargetApi(21)
    public void getOutline(Outline outline) {
        if (this.F0) {
            super.getOutline(outline);
            return;
        }
        Rect bounds = getBounds();
        if (!bounds.isEmpty()) {
            outline.setRoundRect(bounds, this.A);
        } else {
            outline.setRoundRect(0, 0, getIntrinsicWidth(), getIntrinsicHeight(), this.A);
        }
        outline.setAlpha(((float) getAlpha()) / 255.0f);
    }

    public boolean h1() {
        return this.Q;
    }

    public void h2(TextUtils.TruncateAt truncateAt) {
        this.C0 = truncateAt;
    }

    /* access modifiers changed from: package-private */
    public float i0() {
        if (E2() || D2()) {
            return this.W + this.I + this.X;
        }
        return 0.0f;
    }

    public boolean i1() {
        return l1(this.L);
    }

    public void i2(h hVar) {
        this.U = hVar;
    }

    public void invalidateDrawable(Drawable drawable) {
        Drawable.Callback callback = getCallback();
        if (callback != null) {
            callback.invalidateDrawable(this);
        }
    }

    public boolean isStateful() {
        return k1(this.x) || k1(this.y) || k1(this.B) || (this.z0 && k1(this.A0)) || m1(this.k0.d()) || q0() || l1(this.G) || l1(this.S) || k1(this.w0);
    }

    public boolean j1() {
        return this.K;
    }

    public void j2(int i) {
        i2(h.c(this.d0, i));
    }

    public void k2(float f) {
        if (this.X != f) {
            float i02 = i0();
            this.X = f;
            float i03 = i0();
            invalidateSelf();
            if (i02 != i03) {
                o1();
            }
        }
    }

    public void l2(int i) {
        k2(this.d0.getResources().getDimension(i));
    }

    /* access modifiers changed from: package-private */
    public float m0() {
        if (F2()) {
            return this.a0 + this.O + this.b0;
        }
        return 0.0f;
    }

    public void m2(float f) {
        if (this.W != f) {
            float i02 = i0();
            this.W = f;
            float i03 = i0();
            invalidateSelf();
            if (i02 != i03) {
                o1();
            }
        }
    }

    public void n2(int i) {
        m2(this.d0.getResources().getDimension(i));
    }

    /* access modifiers changed from: protected */
    public void o1() {
        C0097a aVar = (C0097a) this.B0.get();
        if (aVar != null) {
            aVar.a();
        }
    }

    public void o2(int i) {
        this.E0 = i;
    }

    public boolean onLayoutDirectionChanged(int i) {
        boolean onLayoutDirectionChanged = super.onLayoutDirectionChanged(i);
        if (E2()) {
            onLayoutDirectionChanged |= androidx.core.graphics.drawable.a.m(this.G, i);
        }
        if (D2()) {
            onLayoutDirectionChanged |= androidx.core.graphics.drawable.a.m(this.S, i);
        }
        if (F2()) {
            onLayoutDirectionChanged |= androidx.core.graphics.drawable.a.m(this.L, i);
        }
        if (!onLayoutDirectionChanged) {
            return true;
        }
        invalidateSelf();
        return true;
    }

    /* access modifiers changed from: protected */
    public boolean onLevelChange(int i) {
        boolean onLevelChange = super.onLevelChange(i);
        if (E2()) {
            onLevelChange |= this.G.setLevel(i);
        }
        if (D2()) {
            onLevelChange |= this.S.setLevel(i);
        }
        if (F2()) {
            onLevelChange |= this.L.setLevel(i);
        }
        if (onLevelChange) {
            invalidateSelf();
        }
        return onLevelChange;
    }

    public boolean onStateChange(int[] iArr) {
        if (this.F0) {
            super.onStateChange(iArr);
        }
        return p1(iArr, R0());
    }

    /* access modifiers changed from: package-private */
    public Paint.Align p0(Rect rect, PointF pointF) {
        pointF.set(0.0f, 0.0f);
        Paint.Align align = Paint.Align.LEFT;
        if (this.E != null) {
            float i02 = this.V + i0() + this.Y;
            if (androidx.core.graphics.drawable.a.f(this) == 0) {
                pointF.x = ((float) rect.left) + i02;
                align = Paint.Align.LEFT;
            } else {
                pointF.x = ((float) rect.right) - i02;
                align = Paint.Align.RIGHT;
            }
            pointF.y = ((float) rect.centerY()) - o0();
        }
        return align;
    }

    public void p2(ColorStateList colorStateList) {
        if (this.D != colorStateList) {
            this.D = colorStateList;
            H2();
            onStateChange(getState());
        }
    }

    public void q1(boolean z2) {
        if (this.Q != z2) {
            this.Q = z2;
            float i02 = i0();
            if (!z2 && this.r0) {
                this.r0 = false;
            }
            float i03 = i0();
            invalidateSelf();
            if (i02 != i03) {
                o1();
            }
        }
    }

    public void q2(int i) {
        p2(b.a.k.a.a.c(this.d0, i));
    }

    public void r1(int i) {
        q1(this.d0.getResources().getBoolean(i));
    }

    /* access modifiers changed from: package-private */
    public void r2(boolean z2) {
        this.D0 = z2;
    }

    public void s1(Drawable drawable) {
        if (this.S != drawable) {
            float i02 = i0();
            this.S = drawable;
            float i03 = i0();
            G2(this.S);
            g0(this.S);
            invalidateSelf();
            if (i02 != i03) {
                o1();
            }
        }
    }

    public void s2(h hVar) {
        this.T = hVar;
    }

    public void scheduleDrawable(Drawable drawable, Runnable runnable, long j) {
        Drawable.Callback callback = getCallback();
        if (callback != null) {
            callback.scheduleDrawable(this, runnable, j);
        }
    }

    public void setAlpha(int i) {
        if (this.t0 != i) {
            this.t0 = i;
            invalidateSelf();
        }
    }

    public void setColorFilter(ColorFilter colorFilter) {
        if (this.u0 != colorFilter) {
            this.u0 = colorFilter;
            invalidateSelf();
        }
    }

    public void setTintList(ColorStateList colorStateList) {
        if (this.w0 != colorStateList) {
            this.w0 = colorStateList;
            onStateChange(getState());
        }
    }

    public void setTintMode(PorterDuff.Mode mode) {
        if (this.x0 != mode) {
            this.x0 = mode;
            this.v0 = c.b.a.b.u.a.a(this, this.w0, mode);
            invalidateSelf();
        }
    }

    public boolean setVisible(boolean z2, boolean z3) {
        boolean visible = super.setVisible(z2, z3);
        if (E2()) {
            visible |= this.G.setVisible(z2, z3);
        }
        if (D2()) {
            visible |= this.S.setVisible(z2, z3);
        }
        if (F2()) {
            visible |= this.L.setVisible(z2, z3);
        }
        if (visible) {
            invalidateSelf();
        }
        return visible;
    }

    public void t1(int i) {
        s1(b.a.k.a.a.d(this.d0, i));
    }

    public void t2(int i) {
        s2(h.c(this.d0, i));
    }

    public void u1(int i) {
        v1(this.d0.getResources().getBoolean(i));
    }

    public void u2(CharSequence charSequence) {
        if (charSequence == null) {
            charSequence = "";
        }
        if (!TextUtils.equals(this.E, charSequence)) {
            this.E = charSequence;
            this.k0.i(true);
            invalidateSelf();
            o1();
        }
    }

    public void unscheduleDrawable(Drawable drawable, Runnable runnable) {
        Drawable.Callback callback = getCallback();
        if (callback != null) {
            callback.unscheduleDrawable(this, runnable);
        }
    }

    public void v1(boolean z2) {
        if (this.R != z2) {
            boolean D2 = D2();
            this.R = z2;
            boolean D22 = D2();
            if (D2 != D22) {
                if (D22) {
                    g0(this.S);
                } else {
                    G2(this.S);
                }
                invalidateSelf();
                o1();
            }
        }
    }

    public void v2(d dVar) {
        this.k0.h(dVar, this.d0);
    }

    public void w1(ColorStateList colorStateList) {
        if (this.y != colorStateList) {
            this.y = colorStateList;
            onStateChange(getState());
        }
    }

    public void w2(int i) {
        v2(new d(this.d0, i));
    }

    public void x1(int i) {
        w1(b.a.k.a.a.c(this.d0, i));
    }

    public void x2(float f) {
        if (this.Z != f) {
            this.Z = f;
            invalidateSelf();
            o1();
        }
    }

    @Deprecated
    public void y1(float f) {
        if (this.A != f) {
            this.A = f;
            setShapeAppearanceModel(B().w(f));
        }
    }

    public void y2(int i) {
        x2(this.d0.getResources().getDimension(i));
    }

    @Deprecated
    public void z1(int i) {
        y1(this.d0.getResources().getDimension(i));
    }

    public void z2(float f) {
        if (this.Y != f) {
            this.Y = f;
            invalidateSelf();
            o1();
        }
    }
}
